#define _CRT_SECURE_NO_WARNINGS	

int exchangeBits(int num)
{
	int odd = 0b10101010101010101010101010101010;
	int even = 0b01010101010101010101010101010101;
	odd &= num;
	even &= num;
	return (odd >> 1) + (even << 1);
}